package Main;

import java.io.*;
import java.util.ArrayList;
import java.util.List;

public class Try8 {
    public static void main(String[] args) throws IOException {
        File file = new File("C:\\Users\\ruanjie\\Documents\\WeChat Files\\wxid_lhalpx1ul6rf22\\FileStorage\\File\\2021-10\\userwt\\garment\\zhujunkai.txt");
        BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(file)));
        List<String> targetList = new ArrayList<>();
        String targetLine;
        while ((targetLine=reader.readLine())!=null){
            targetList.add(targetLine);
        }
        reader.close();

        int cpvton = 0;
        int mine = 0;
        for (int i=0;i<100;i++){
            if (targetList.get(i).contains("cpvton")){
                cpvton = cpvton + 1;
            }
            if (targetList.get(i).contains("mine")){
                mine++;
            }
        }

        System.out.println("cpvton:"+cpvton);
        System.out.println("mine:"+mine);

        int cpvton_plus = 0;
        mine = 0;
        for (int i=100;i<200;i++){
            if (targetList.get(i).contains("cpvton_plus")){
                cpvton_plus = cpvton_plus + 1;
            }
            if (targetList.get(i).contains("mine")){
                mine++;
            }
        }

        System.out.println("cpvton_plus:"+cpvton_plus);
        System.out.println("mine:"+mine);

        int acgan = 0;
        mine = 0;
        for (int i=200;i<300;i++){
            if (targetList.get(i).contains("acgan")){
                acgan = acgan + 1;
            }
            if (targetList.get(i).contains("mine")){
                mine++;
            }
        }

        System.out.println("acgan:"+acgan);
        System.out.println("mine:"+mine);

        int clothflow = 0;
        mine = 0;
        for (int i=300;i<400;i++){
            if (targetList.get(i).contains("clothflow")){
                clothflow = clothflow + 1;
            }
            if (targetList.get(i).contains("mine")){
                mine++;
            }
        }

        System.out.println("clothflow:"+clothflow);
        System.out.println("mine:"+mine);

    }
}
